import { defineStore } from "pinia";
import { DynamicButtonStore } from "@/stores/interface";
export const useDynamicButtonStore = defineStore({
  id: "dynamicButton",
  state: (): DynamicButtonStore => ({
    buttonList: [],
    fulltextButtonList: [],
    childButtonList: []
  }),
  getters: {},
  actions: {
    SetButtonList(list: any[]) {
      this.buttonList = list;
    },
    SetFulltextList(list: any[]) {
      this.fulltextButtonList = list;
    },
    SetChildButtonList(list: any[]) {
      this.childButtonList = list;
    }
  }
});
